-
Notifications
You must be signed in to change notification settings - Fork 79
Support .idl files for ROS message/service/action #1181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds full support for ROS2 .idl files by extending parsing, generation, testing, and documentation to include IDL-based interfaces.
- Extend
packages.jsand directory walkers to detect and store.idlfiles. - Integrate a Python-based IDL-to-ROS converter and wire it into
index.jsunder a new--idlflag. - Update tests, npm scripts, CI workflows, versioning, and README to cover IDL support.
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/test-message-type.js | Clean up by destroying the subscription after message |
| test/test-message-generation-bin.js | Add --idl flag detection for binary-script tests |
| rosidl_gen/packages.js | Introduce idls bucket and branch logic for .idl |
| rosidl_gen/index.js | Add --idl flag, directory setup, and conversion logic |
| rosidl_gen/generator.json | Bump version to 1.0.0 and include .idl in description |
| package.json | Add generate-messages-idl and test-idl scripts |
| README.md | Document IDL-based message generation |
| .github/workflows/windows-build-and-test.yml | Update Windows runner version |
| .github/workflows/windows-build-and-test-compatibility.yml | Update Windows runner version |
| .github/workflows/linux-x64-build-and-test.yml | Add IDL test step for ROS rolling |
Comments suppressed due to low confidence (3)
.github/workflows/windows-build-and-test.yml:20
- The runner label 'windows-2025' is not a supported GitHub Actions image and will cause CI failures; consider using a valid label such as 'windows-2022'.
runs-on: windows-2025
.github/workflows/windows-build-and-test-compatibility.yml:9
- The runner label 'windows-2025' is invalid; update to a supported runner like 'windows-2022' to avoid CI errors.
runs-on: windows-2025
README.md:35
- The link anchor '#ros2-interface-message-generation-important' doesn’t match any heading (likely should be '#ros2-interface-message-generation'); update to the correct anchor to prevent a broken TOC link.
- [ROS2 Interface Message Generation](#ros2-interface-message-generation-important)
This PR adds full support for ROS2 `.idl` files by extending parsing, generation, testing, and documentation to include IDL-based interfaces. - Extend `packages.js` and directory walkers to detect and store `.idl` files. - Integrate a Python-based IDL-to-ROS converter and wire it into `index.js` under a new `--idl` flag. - Update tests, npm scripts, CI workflows, versioning, and README to cover IDL support. - Pump `rosidl-generator` to `1.0.0`. Meanwhile, this patch pumps Windows action image to `windows-2025` because the previous one has been deprecated. Fix: #764
This PR adds full support for ROS2
.idlfiles by extending parsing, generation, testing, and documentation to include IDL-based interfaces.packages.jsand directory walkers to detect and store.idlfiles.index.jsunder a new--idlflag.rosidl-generatorto1.0.0.Meanwhile, this patch pumps Windows action image to
windows-2025because the previous one has been deprecated.Fix: #764